package com.soyoung;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/*启动类
需要注意的是集成mybatis是必须要使用@EnableAutoConfiguration这个注解，
spring会自动实现相关的ORM映射
*/
@EnableAutoConfiguration
@EnableDiscoveryClient //注册服务到注册中心
@SpringBootApplication
@RefreshScope
public class ConfigClientOneApplication {

	public static void main(String[] args) {
		SpringApplication.run(ConfigClientOneApplication.class, args);
	}

}

